package com.base.storage.enums;

import com.base.core.result.ResponseCodeEnum;

/**
 * 错误码枚举类
 *
 * 上传系统，使用 1-001-001-000 段
 */
public enum BusinessCodeEnums implements ResponseCodeEnum {
    // ========== 上传 模块 ==========
    FILE_NOT_EXISTS(1001001000, "文件不存在"),
    FILE_SIZE_LIMIT(1001001001, "文件大小超出限制"),
    FILE_TYPE_ILLEGAL(1001001002, "文件类型不合法")
    ;


    private final int code;
    private final String message;

    BusinessCodeEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
